import 'package:flutter/material.dart';

class LoadingAnimation extends StatelessWidget {
  const LoadingAnimation({super.key});

  @override
  Widget build(BuildContext context) {
    return Container(
      child: Column(
        mainAxisAlignment: MainAxisAlignment.center,
        crossAxisAlignment: CrossAxisAlignment.center,

        // 垂直方向的布局
        children: [
          Center(
            child: Image.asset(
              'assets/loading.gif',
              width: 60,
              height: 60,
              fit: BoxFit.cover,
            ),
          ),
          Center(child: Text('正在加载中...', style: TextStyle(fontSize: 14))),
        ],
      ),
    );
  }
}
